﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DemoForSnake
{
    public partial class UserControlNoBlink : UserControl
    {
        public UserControlNoBlink()
        {
          //防止闪烁
            InitializeComponent();
            SetStyle(
                ControlStyles.OptimizedDoubleBuffer |
                ControlStyles.ResizeRedraw |
                ControlStyles.AllPaintingInWmPaint, true
                );
        }
    }
}
